"""
元组
tup1 = (1, 2, 3)
tup2 = (50) #<class 'int'> false
tup3 = (50,2) #<class 'tuple'> true

print(type(tup1))
print(type(tup2))
print(type(tup3))
"""
tup1 = (1, 2, 3,'abc','edf')
#查
# print(tup1[1])
# print(tup1[-1])

#增 （连接）
tup2 = (50,'bcd')
tup = tup1 + tup2 #
print(tup)

#删
del tup1 # 删除了整个元组变量
# print(tup1) # 报错 元组已被删除

#改
# tup1[0] = (100) #报错 不能修改
# print(tup1)